import { apiResquest } from '@/utils/request.js'
// 获取课程列表
export const course = (query) => {
	return apiResquest({
		url: `/api/course/page`,
		method: 'get',
		query
	})
}
// 获取教练列表数据
export const carsh = (query) => {
	return apiResquest({
		url: `/api/user/follow`,
		method: 'put',
		query
	})
}
//获取教练详情信息
export const carshInfo = (query) => {
	return apiResquest({
		url: `/api/user/coach/${query}`,
		method: 'get',
	})
}
// 录入跑步数据
export const runData = (query) => {
	return apiResquest({
		url: `/api/running/add`,
		method: 'post',
		data:query
	})
}